<?php

namespace App\Http\Business;

class DemoBusiness extends BusinessResult
{
    protected static string $LOG_MODULE = 'Business/DemoBusiness';

    /**
     * 示例
     * @param array $params
     * @return bool
     */
    public function close(array $params): bool
    {
        if ($params) {
            return $this->error('error');
        }

        return $this->success('success');
    }
}